package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Activtyrecord implements Serializable {
    private Integer atrno;

    private Integer atno;

    private Integer ano;

    private String atrname;

    private Date atrbegin;

    private Date atrend;

    private Integer atrstate;

    private Integer endano;

    private static final long serialVersionUID = 1L;

    public Integer getAtrno() {
        return atrno;
    }

    public void setAtrno(Integer atrno) {
        this.atrno = atrno;
    }

    public Integer getAtno() {
        return atno;
    }

    public void setAtno(Integer atno) {
        this.atno = atno;
    }

    public Integer getAno() {
        return ano;
    }

    public void setAno(Integer ano) {
        this.ano = ano;
    }

    public String getAtrname() {
        return atrname;
    }

    public void setAtrname(String atrname) {
        this.atrname = atrname;
    }

    public Date getAtrbegin() {
        return atrbegin;
    }

    public void setAtrbegin(Date atrbegin) {
        this.atrbegin = atrbegin;
    }

    public Date getAtrend() {
        return atrend;
    }

    public void setAtrend(Date atrend) {
        this.atrend = atrend;
    }

    public Integer getAtrstate() {
        return atrstate;
    }

    public void setAtrstate(Integer atrstate) {
        this.atrstate = atrstate;
    }

    public Integer getEndano() {
        return endano;
    }

    public void setEndano(Integer endano) {
        this.endano = endano;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Activtyrecord other = (Activtyrecord) that;
        return (this.getAtrno() == null ? other.getAtrno() == null : this.getAtrno().equals(other.getAtrno()))
            && (this.getAtno() == null ? other.getAtno() == null : this.getAtno().equals(other.getAtno()))
            && (this.getAno() == null ? other.getAno() == null : this.getAno().equals(other.getAno()))
            && (this.getAtrname() == null ? other.getAtrname() == null : this.getAtrname().equals(other.getAtrname()))
            && (this.getAtrbegin() == null ? other.getAtrbegin() == null : this.getAtrbegin().equals(other.getAtrbegin()))
            && (this.getAtrend() == null ? other.getAtrend() == null : this.getAtrend().equals(other.getAtrend()))
            && (this.getAtrstate() == null ? other.getAtrstate() == null : this.getAtrstate().equals(other.getAtrstate()))
            && (this.getEndano() == null ? other.getEndano() == null : this.getEndano().equals(other.getEndano()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAtrno() == null) ? 0 : getAtrno().hashCode());
        result = prime * result + ((getAtno() == null) ? 0 : getAtno().hashCode());
        result = prime * result + ((getAno() == null) ? 0 : getAno().hashCode());
        result = prime * result + ((getAtrname() == null) ? 0 : getAtrname().hashCode());
        result = prime * result + ((getAtrbegin() == null) ? 0 : getAtrbegin().hashCode());
        result = prime * result + ((getAtrend() == null) ? 0 : getAtrend().hashCode());
        result = prime * result + ((getAtrstate() == null) ? 0 : getAtrstate().hashCode());
        result = prime * result + ((getEndano() == null) ? 0 : getEndano().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", atrno=").append(atrno);
        sb.append(", atno=").append(atno);
        sb.append(", ano=").append(ano);
        sb.append(", atrname=").append(atrname);
        sb.append(", atrbegin=").append(atrbegin);
        sb.append(", atrend=").append(atrend);
        sb.append(", atrstate=").append(atrstate);
        sb.append(", endano=").append(endano);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}